package com.Apo1o.controller;

import com.Apo1o.response.Result;
import com.Apo1o.service.DiseaseService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: Apo1o.
 * @Date: 2023/11/2-11-02-20:06
 * @Description： com.Apo1o.controller
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("diseaseRecord")
public class DiseaseController {
    private final DiseaseService diseaseService;
    @GetMapping
    public Result findAll(Integer pageNum, Integer pageSize,String dType,String drStatus){
       return Result.success( diseaseService.findAll(pageNum,pageSize,dType,drStatus));
    }
}
